// @ts-ignore
/* eslint-disable */
import request from '@/request'

/** 删除蓝桥杯报名信息 DELETE /api/lanqiao/${param0}/${param1} */
export async function removeUsingDelete(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.removeUsingDELETEParams,
  options?: { [key: string]: any }
) {
  const { race: param0, isTeacher: param1, ...queryParams } = params
  return request<API.R>(`/api/lanqiao/${param0}/${param1}`, {
    method: 'DELETE',
    params: { ...queryParams },
    ...(options || {}),
  })
}

/** 根据比赛id查询指导老师列表 GET /api/lanqiao/getTeacherList/${param0} */
export async function getTeacherListUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getTeacherListUsingGETParams,
  options?: { [key: string]: any }
) {
  const { race: param0, ...queryParams } = params
  return request<API.RListlanqiebaolaoshibaomingxinxiduixiang>(
    `/api/lanqiao/getTeacherList/${param0}`,
    {
      method: 'GET',
      params: { ...queryParams },
      ...(options || {}),
    }
  )
}

/** 修改蓝桥杯学生报名信息 PUT /api/lanqiao/student */
export async function editUsingPut(
  body: API.lanqiebaoxueshengbaomingxinxiduixiang,
  options?: { [key: string]: any }
) {
  return request<API.R>('/api/lanqiao/student', {
    method: 'PUT',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** 获取学生蓝桥杯报名信息 GET /api/lanqiao/student/${param0} */
export async function getStudentUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getStudentUsingGETParams,
  options?: { [key: string]: any }
) {
  const { race: param0, ...queryParams } = params
  return request<API.Rlanqiebaoxueshengbaomingxinxiduixiang>(`/api/lanqiao/student/${param0}`, {
    method: 'GET',
    params: { ...queryParams },
    ...(options || {}),
  })
}

/** 新增蓝桥杯学生报名信息 POST /api/lanqiao/student/${param0} */
export async function addUsingPost(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.addUsingPOSTParams,
  body: API.lanqiebaoxueshengbaomingxinxiduixiang,
  options?: { [key: string]: any }
) {
  const { race: param0, ...queryParams } = params
  return request<API.R>(`/api/lanqiao/student/${param0}`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    params: { ...queryParams },
    data: body,
    ...(options || {}),
  })
}

/** 修改蓝桥杯老师报名信息 PUT /api/lanqiao/teacher */
export async function editUsingPut1(
  body: API.lanqiebaolaoshibaomingxinxiduixiang,
  options?: { [key: string]: any }
) {
  return request<API.R>('/api/lanqiao/teacher', {
    method: 'PUT',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** 获取老师蓝桥杯报名信息 GET /api/lanqiao/teacher/${param0} */
export async function getTeacherUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getTeacherUsingGETParams,
  options?: { [key: string]: any }
) {
  const { race: param0, ...queryParams } = params
  return request<API.Rlanqiebaolaoshibaomingxinxiduixiang>(`/api/lanqiao/teacher/${param0}`, {
    method: 'GET',
    params: { ...queryParams },
    ...(options || {}),
  })
}

/** 新增蓝桥杯老师报名信息 POST /api/lanqiao/teacher/${param0} */
export async function addUsingPost1(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.addUsingPOST1Params,
  body: API.lanqiebaolaoshibaomingxinxiduixiang,
  options?: { [key: string]: any }
) {
  const { race: param0, ...queryParams } = params
  return request<API.R>(`/api/lanqiao/teacher/${param0}`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    params: { ...queryParams },
    data: body,
    ...(options || {}),
  })
}

/** 查询蓝桥杯赛道类型列表 POST /api/lanqiao/typeList */
export async function typeListUsingPost(
  body: API.lanqiebaosaidaoleixingduixiang,
  options?: { [key: string]: any }
) {
  return request<API.RListlanqiebaosaidaoleixingduixiang>('/api/lanqiao/typeList', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}
